<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-11-09 09:52:38
         compiled from "H:\WebApplication\myconpany\sumi_mobile\application\views\price\select.html" */ ?>
<?php /*%%SmartyHeaderCode:22392561b2754c77ae0-95962534%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e5a9d5a07fed3e8bc2ded0a75f244037da9e1c4a' => 
    array (
      0 => 'H:\\WebApplication\\myconpany\\sumi_mobile\\application\\views\\price\\select.html',
      1 => 1446805424,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '22392561b2754c77ae0-95962534',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_561b2754d559a2_02157203',
  'variables' => 
  array (
    '_cateArr' => 0,
    'key' => 0,
    'brand_name' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_561b2754d559a2_02157203')) {function content_561b2754d559a2_02157203($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/header.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header stop-->
<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/common/headertitle.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--header end-->
<div class="box-user">

<?php echo '<script'; ?>
 type="text/javascript">

<?php echo '</script'; ?>
>


<section class="wrap">

    <!--content stop-->

    <section class="list-filter mt10p">


        <section class="hot-commodity">
                    <form name="select" id="select">
                        <ul class="sw_listm">
                            <li><span class="sw_tsp">品种：</span>
                               
                                <select name="cn" id="cn" class="input_test business_id">
                                    <option value="" >请选择</option>
                                    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['_cateArr']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
</option>
                                    <?php } ?>
                                </select>
                               
                            </li>
                            <li><span class="sw_tsp">币种：</span>
                                <select name="currency_code" id="currency_code"  class="input_test business_id">
                                        <option value="" >请选择</option>
                                        <option value="RMB">人民币</option>
                                        <option value="USD">美金</option>
                                        <option value="EUR">欧元</option>
                                    </select>
                               
                            </li>
                            <li><span class="sw_tsp">厂商：</span>
                            
                                    <select name="brand_name" id="brand_name"  class="input_test business_id">
                                    <option value="" >请选择</option>
                                    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['brand_name']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
</option>
                                    <?php } ?>
                                    </select>
                                   
                            </li>
                            <li><span class="sw_tsp">地区：</span>

                                <select name="region" id="region" class="input_test business_id">
                                    <option value="" >请选择</option>
                                    <option value="2">天津</option>
                                    <option value="84">盘锦</option>
                                    <option value="9">上海</option>
                                    <option value="117">常州</option>
                                    <option value="118">苏州</option>
                                    <option value="127">杭州</option>
                                    <option value="128">宁波</option>
                                    <option value="129">温州</option>
                                    <option value="132">绍兴</option>
                                    <option value="155">福州</option>
                                    <option value="156">厦门</option>
                                    <option value="159">泉州</option>
                                    <option value="176">青岛</option>
                                    <option value="200">濮阳</option>
                                    <option value="236">广州</option>
                                    <option value="238">深圳</option>
                                    <option value="239">珠海</option>
                                    <option value="240">汕头</option>
                                    <option value="241">佛山</option>
                                    <option value="242">江门</option>
                                    <option value="243">湛江</option>
                                    <option value="244">茂名</option>
                                    <option value="246">惠州</option>
                                    <option value="252">东莞</option>
                                    <option value="257">南宁</option>
                                    <option value="261">北海</option>
                                    <option value="22">重庆</option>
                                    <option value="1329">余姚</option>
                                    <option value="28930">乐从</option>
                                    <option value="253">中山</option>
                                    <option value="75">大连</option>
                                    <option value="103">大庆</option>
                                    <option value="77">抚顺</option>
                                    <option value="339">兰州</option>
                                </select>
                              
                            </li>
                        </ul>
                      
                        <div class="stm_btn">
                        <input type="button" value="确认"  class="re_btn reb_blue confirm_btn">
                        <input type="reset" value="重置" class="re_btn">
                        </div>
                  
                    </form>
             
        </section>
    </section>
    <!--content end-->
</section>
</div>

<?php echo '<script'; ?>
 type="text/javascript">
    $(function(){
        $(".reset_btn").click(function(){
            document.getElementById("select").reset();
        });

        $(".confirm_btn").click(function(e){
            e.preventDefault();
            var region =  $("#region option:selected").val();
            var regionname =  $("#region option:selected").text();

            var cn =  $("#cn option:selected").val();
            var currency_code =  $("#currency_code option:selected").val();
            var brand_name =  $("#brand_name option:selected").val();

            var url = '/price/index';
            if(region !=''){
                url += '/area_id/'+region+'/areaname'+regionname;
            }
            if(cn !=''){
                url += '/cn/'+cn;
            }
            if(currency_code !=''){
                url += '/currency_code/'+currency_code;
            }
            if(brand_name !=''){
                url += '/brand_name/'+brand_name;
            }
            window.location.href=url;

        });
    });
<?php echo '</script'; ?>
>


<?php echo $_smarty_tpl->getSubTemplate ((@constant('APPLICATION_PATH')).("/application/views/footer.html"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
